package com.example.toolbar;

import android.content.Context;
import android.content.res.AssetManager;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class ShopCarFragment extends Fragment{
	private View view;// ����ҳ��
	private Context context ;
	Typeface typeface2;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		context = getActivity() ;
		if (view == null) {
			view = inflater
					.inflate(R.layout.fragment_shopcar, container, false);
		}
		AssetManager mgr2=context.getResources().getAssets();
		typeface2=Typeface.createFromAsset(mgr2,"Fonts/Content.TTF");
		TextView tx_qidai = (TextView)view.findViewById(R.id.qidai);
		tx_qidai.setTypeface(typeface2);
		ViewGroup parent = (ViewGroup) view.getParent();
		if (parent != null) {
			parent.removeView(view);// ���Ƴ�
		}
		return view;
	}
}
